﻿using Basic.FormRemoteModel.Table;
using Basic.FormRemoteModel.Table.Model;
using Basic.FormService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FormService.RpcEvent
{
    internal class TableQueryBodyEvent : IRpcApiService
    {
        private readonly IFormQueryBodyService _Service;

        public TableQueryBodyEvent ( IFormQueryBodyService service )
        {
            this._Service = service;
        }

        public FormQueryColumn[] GetQueryTable ( GetQueryTable obj )
        {
            return this._Service.Gets(obj.Id);
        }
    }
}
